#!/bin/sh

if [ $UID != 0 ]
then
    echo "This script requires root user access"
    echo "Re-run as root user"
    exit 1
fi

echo "Copying rastertozq filter"
sudo chmod +x rastertozq
sudo cp ./rastertozq /usr/libexec/cups/filter

echo "Install Complete"
echo "Add printer queue using OS tool, http://localhost:631, or http://127.0.0.1:631"
echo ""
echo "Press any key to exit..."
read -n 1
